<?php if (is_array($this->activityList) && count($this->activityList) > 0): ?>
<ul>
<?php foreach ($this->activityList as $act):
	$params  = $act->getParams();
	$objects = $act->getObjects(); ?>
	<li><a href="<?php echo $params['subjectUrl']; ?>"><?php echo $params['subjectNicename']; ?></a>
		<?php echo $this->escape($act->getAction()) .' '; ?>
<?php
	if (is_array($objects) && count($objects) > 0) {
		foreach ($objects as $obj) {
			if ($obj->getRole() != 'object') {
				continue;
			}
			$objInst = $obj->getObjectInstance();
			echo $obj->getObjectClassIdName() .' <a href="'. site_url_base('/'. $obj->getObjectClassIdName() .'/'. $objInst->getIdName()) .'">'. $objInst->getNicename() .'</a> ';
		}
	}
?>
		<small>&ndash; <?php echo $this->relTimeString($act->getTime()); ?></small>
	</li>
<?php endforeach; ?>
</ul>
<?php else: ?>
No activities yet.
<?php endif; ?>
